﻿package kaze.display.application 
{
    import ninjas.ninpo.states.CoreState;
    
    /**
     * The body of the application.
     */
    public class Body extends CoreState 
    {
        /**
         * Creates a new Body instance.
         */
        public function Body()
        {
            super();
        }
        
        /**
         * Invoked after the draw() method in the update() method.
         */
        public override function viewChanged():void
        {
            if ( stage )
            {
                x = ( stage.stageWidth  - w ) / 2 ;
                y = ( stage.stageHeight - h ) / 2 ;
            }
        }
    }
}
